<script>
  // 添加错误处理
  window.addEventListener('error', function(e) {
    if (e.message.includes('Receiving end does not exist')) {
      e.stopPropagation();
      return true;
    }
  }, true);
</script> 